package Reflect;

import Reflect.annotation.AutoRunClass;
import Reflect.annotation.AutoRunMethod;
@AutoRunClass
public class Teacher {
    public String name;
    @AutoRunMethod
    public void teach(){
        System.out.println("老师正在讲课");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
